FROM python:3.7.10-buster

WORKDIR /app

EXPOSE 5555 5556

ADD requirement.txt .
RUN pip install -r requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

CMD ["bert-base-serving-start","-model_pb_dir","/app/pb","-bert_model_dir","/app/zh","-model_dir","/app/BERT_NER","-num_worker","4","-mode","NER"]